fixed state machine so it now goes to proper state when visible pass is starting