Fixed notes not being saved properly.