bug fixed: when a post is deleted, the index will build twice.