fixed issues with the king