fixing post edit bug