fixed the bugs for the deletion of comments