Apply correction from Openlayers#1163

https://github.com/openlayers/openlayers/pull/1163

fix #437