fix duplicate name when change between classes