fixes issue #497
Merge pull request #500 from AlainPaumen/master

fixes issue #497