Fixed bug when detecting if annotation exists or is a new one