fix assertion of diff.
Merge pull request #8 from hansode/fix-assertion

fix assertion of diff.