fix bug with post edit