fixing an issue in HTTP methods