fixes #193 - no folders if no children