Update last ref