fix two mistakes in empty-folder implementation
tag v0.5.9