fixed a bug when is not possible to apply the shortest feasible mode for the given jobs.