Fixing return issue in request method