fixed bug in HTTP methods