Fixed wrong return statement
Merge pull request #7606 from malinoff/fix-wrong-return

Fixed wrong return statement