bug fix for post edit