Fixed the double king bug