Fixed a bug in Canfield.isSolved