ATIConnectorsPatch: fix wrong check for number of occurences