fixed keyup bug