Fixing faction code.