Removed undefined variable from return statement

Fixes warning