fix #636
Merge pull request #638 from dennym/patch-3

fix #636