Fixed really annoying input bug