fixed root dir bug