Mega Bug has been fixed.

I was doing a shallow copy instead of a deep copy.