fix post delete bug