Fix issue with post request