Prevent IE from throwing exception