fix get parent class name