fixed isSolved bug