fixed bug where kvis annotation files would sometimes break and crash