Added mbarelsm's fix for KSOS config