Fix default function variable and remove load model