a stitch in time (saves nine)

idiom

Definition of a stitch in time (saves nine)

used to say that it is better to fix a problem when it is small than to wait and let it become a bigger problem