bug fix on data POST