fixed error with initial cache