Fix reference issue with metadata mixin