fix the root redirect issue