Deleting odd appearance of documents