Fixed wrong usage of document class