Fixed return value
Merge pull request #83 from sylvaindeloux/refactor_code

Fixed return value