fixed error with hanging up if clobber=false