fixes a bug in comment deleting