Fix post delete logics.