Fixed input event and duplicate events