fixed #15 Delete a context with some notes fails