Kingdom: fix compile error