fix bugs for note template