bug fix on post method