fixed a bug

In IE, the event of input may cause 'stack overflow' error