Fixed bug in annotation tool