Fixed renderItem() method.