fixed reverse class instance