Fix #2: Modify renderItems for parent class change