fix hang and empty files if passing array of one element
bump (v1.0.1)