clone item to fix pass by ref issue