fix player input bugs