fixed bug to send post data