fixed wrong input event