Fix bug dealing with deleted posts.