fix injecting attrs to lazy-class definition