fix class initializer bug.