fixing issue #269
Merge pull request #270 from meganap/agut_issue_269

fixing issue #269