Corrections of some bugs
Merge pull request #2 from mathieumoli/moli

Corrections of some bugs