Fix two bugs about selection of new annotation.