Fix recursion error with the base path.