fix assertion of diff.