class instance fix