Fix regression when adding new notes