Fixing return statement