Should fix a memory leak in IE