fixed issue passing params to post requests