Fix issue #1660

https://github.com/Araq/Nimrod/issues/1660