Function get_goal_tab debugged + function goal_size lightly improved