Fixed incorrect return status
Fixes #62