fix root dir bug if not existed