fix a z-indexing but with annotations