fix issue 478
Merge pull request #483 from clementbera/gh-478

fix issue 478