fix ko undefinded error