Fix IE bug with styles parsing