Fixing a class initialization bug.