i reread the pedia , thanks for the link , and he was working exactly the way he should. the city rebeled. then the next turn , instead of becomeing mine , he went back to being shiam like it was originally. this caused loki to turn over to shiam. i am pretty sure its a bug.