Fixed error with tbldef in model_mixin