Fix compatibility for IE

Fix compatibility for IE