Bug fixes for IE