Fix bad IE function call