Fixed constructor error when usign mixin