// racing issues on class_index