Fixed bug with deleting newly created note