Fixed a bug when computeOnAGrid would not find a single point better than -inf and crash the analysis