fix selected target bug