This is because you are using other gamestate class, not official. You have to cast to the custom gamestate you are using.