fix target bug