fix #238

Patch to fix #238