bug fixed for input event in some browsers