fix edit post error.