Fixed bug in adding notes