Fix cache in model