Very hacky fix for some IE9 issues