Bug fixes for ie