longlist empty directory fix