Small fixes for IE9 and Firefox