fix post edit bug