revise patch comparison

so stupid that using pixel match...
but still some bugs