fix pr 282
Merge pull request #313 from cgzones/fix_pr282

fix 312