fix error loading kos