added missing return to if statement.  Fixes #232