Fixed the request code