Fixed the GotoState error