fix issue #261

just a quick fix for issue #261