fixes for input state