Fixes undefined function error thrown during model generation with schema provided.