Fixed bug in counting unsaved annotations