A fix for issue #769
Merge pull request #770 from chrisdev/master

A fix for issue #769