fixes for IE and FF