fix target change bug