Fix solution initialization code