correct some logic errors
$( git diff )