changed the used cache object
fixed minor bug