MAX 2014 SceneState Script Error

Sorry for my bad english.
i have a strange behaviour on a SceneScate Script that i wrote for max 2013 in our Company to use the scenestates.
if in a script, located in the Max2014 scripts\startup folder,
the following function called:

"SceneStateCount = sceneStateMgr.GetCount()"

it is not able to open the Manage SceneStates Dialog anymore.

Only if i load a scene which has scenestates in it, it works fine.

if i load a scene without scene states it does´nt.

If i load the script after Max has loaded all works fine.

Can anyone help