fix for issue 852

https://openhatch.org/bugs/issue852