Corrected error when solution empty