shallow copy issue fixed