Fixed cache when duplicating or deleting notes. Resolves #6.