fix a bug that creating an annotation may freeze xygraph
Merge pull request #1 from xihui/patch-1

fix a bug that creating an annotation may freeze xygraph