fixed incorrect return values, relating to previous change
Merge pull request #103 from lindegroup/error-logic-fix

fixed incorrect return values, relating to previous change