That doesn't mean when they were baptized, Paul said, "I baptize you in the name of Jesus." The text states they come to understand Jesus is the one who empowers them with the Holy Spirit as they have not even heard of the Holy Spirit You must read above and below the text, not just one verse, and circle your wagon around.
what does that text say?
Acts 19:2
2 he said to them, “Did you receive the Holy Spirit when you believed?”
So they said to him, “We have not so much as heard whether there is a Holy Spirit.”
3 And he said to them, “Into what then were you baptized?”
So they said, “Into John’s baptism.”
4 Then Paul said, “John indeed baptized with a baptism of repentance, saying to the people that they should believe on Him who would come after him, that is, on Christ Jesus.”
When they heard this, what did they hear? They must Believe on Jesus Christ and be baptized with HIS Baptism, which is the Holy Spirit,
As Paul asked them and confirmed this as we read in the Gospel of John chapter 1, where Paul says what John said: you must believe on HIM who comes after John 1:15 and 1:27, 33
They were baptized in the name of the Lord Jesus. 6 And when Paul had laid hands on them, the Holy Spirit came upon them, and they spoke with tongues and prophesied. 7 Now, the men were about twelve in all.
You are incorrect.