fixed the root boundary bug