fix root_path`s bad reference in some places