fix previous patch
Merge pull request #112 from thomas-mangin/master

fix previous patch