fixed kingmaker bug