fix event for input