fix for http://bugs.openmw.org/issues/517