fix bug introduced by @blankyao for IE