Fixed a bug with Solution's copy constructor