patch_document and delete_document not checking the correct AC_ bit