Some improvements and fixes for IE