fix #1241
Merge pull request #1243 from fowlmouth/patch-4

fix #1241