fix for issue #277
Merge pull request #279 from sri-prasanna/master

fix for issue #277