Fixes for documents and delta jobs