Fixed a bug in a mixin.