Issue fixing while returning access token