fixes issue #356
Merge pull request #357 from ThomasChiroux/master

small fix for issue #356