fixed a bug with the input controls