Finally fixed solution checking!