Fix a bug that can cause memory leak in IKoptions