fixes bugs in ie