Fixed bug in deleting annotations