Merge "Set mv to zero if the second ref does not exist"