Fixed generating solution for not solvable levels.