Fixed NuML writer for annotations