repair instance class