control input bug fix