Fix var def in cache