Fixed a bug in mixins.