fixed error with controls