Fixed another bug in input controller