Fixed bug that meant IE<11 would not work