fixed #465: IE8 throws error for input type change