fix class object creation for DebugBar