Updating document class if it was moved