fixed bug setting request method to POST