empty dirs caused exception