Fix handling of solution detection in webapp