fix bugs
delete target dir