Fix input field bug and IE support