It only wiped out the memories of those in the prison world. In the other world, it didn’t. I’m not sure why Malivore released him into the real world. Probably because he is evil. BTW, I really like Kai’s 90’s references—for example, his comments on Zima.