fix edit post issue