Annotator Tools: Fix major logic bug in code

On behalf of @lduarte1991.