Fixes STI issue in mixin when used in parent class