Fixed issue with manage directory