Fixed error in the post call