Fix 1052

Fixes annotation writing