fix focus jumping unexpectedly to wrong element
build