Bugfix in constructor, m_cdrep was not 0 which could cause segfault in destructor if class was not found