corrected bug
detected by @joffreyc85
It relates to issue #33.
Starting programming with @tchambil