bug fix in post save