Bug fixes in annotate_junctions