Fixes for IE down to 8