fixed error with proportional control