Solved bug in annotation tool