minor bug fix in --cache option