Fixed error with post request