Quick fix to global directory recursion