fixing error in mixin refactor