fix for remove dir