Final fix for solution detecting.