fix for empty directories