fix bug when trying to add first note