I believe your slave instance was still connected to the master database when you set the master instance. That would be why sql said the server id was the same. When you were executing queries in the slave instance you were still connected to the master which is why it appeared to be replicating properly.