diff --git a/script/show_solutions b/script/show_solutions
index c1f49a6a277385d5c85e51e865eb11850c620fd8..3d0ab7424ae5d9a65f7469aaad1755f827828776 100755
--- a/script/show_solutions
+++ b/script/show_solutions
@@ -2,10 +2,6 @@
 
 function possible_solutions {
 
- if [ $sq -eq 1 ]; then
-   return
- fi
-
  sol=1
  echo "Possible solutions:"
  for com in "$@"
@@ -18,8 +14,13 @@ function possible_solutions {
  sol=`expr $sol + 1`
  echo "$sol exit the script"
  echo -e "\033[1;34;5mChoose the solution:\033[0m"
- if [ -f default_choice ]; then
-   choose=$(cat default_choice)
+ if [ $sq -eq 1 ]; then
+   if [ -f cat default_choice ]; then
+     choose=$(cat default_choice)
+   else
+     echo "No solution choosen, continue ... "
+     return
+   fi
  else
    read choose
  fi