Fixes issue with IE sometimes, introduced in 60dbf49f89e4e58cbc7c199fbaf361b9cc126cff