fixed bug that print back incorrect removed dir