Fixed missing return

It seems I have a serious problem with returns...
Merge pull request #240 from TheOneRing/return_fix

Fixed missing return