fix bug in diff2