FIX. Update Document class if it was moved.