Fixed bug that caused compile error on IE 8/9