bug fixes for IE