fixing values of notes when range changes