Fixed a problem where root_path was set incorrectly