fix set-target bug