file error handle

dist -> dists