Fixed special fields creation for document classes