Fixed bug with empty directories not completing