Fix error in shouldUpdateDirect.