Rotation problem when creating instance


When I try to create any object inside the red marked parts in max, which can be seen on the pic:

its rotation gets f*cked up. Is it posibly to fix that rotation problem for some scripted plugin? I tried to fix the problem inside attachtonode and tool create, but looks like it not the places where the problem apears.