fix post deletion bug