fix weird inputs