correction erreur affichage detection contours