fixed various powerup and state related bugs