fix variables bugs with mixins and cards