Fixed error in saving annotations