You are not entirely mistaken ... Paul referred to James and Peter and may have attributed ‘apostle’ to James in that letter, but James was not a traditionally acknowledged Apostle as one fitting the definition Peter used when Matthias was selected to replace Judas.
Thanks to both of you for clarifying the matter.