improve robustness
handle edit post