This should fix renderItem method.