Lot of fixes for ie8