Fix a typo in mkRef.