Fix API + Style + Undefined build in defaultmodel