fix problem for post method