Fix find double count in patch