fix edit post error