fixed the bug of unhighlight

when highlighting a new shape, the old one will be visually
unhighlighted now.