bug fix in bin/wash