Empty directory path on some pages