Fix kmc.vars reference to the parent frame