fixed bugs in kingmaker