fix error in diff