It is working here. Maibe caling @value.dup it would be more appropriate. I`m not sure.