fix model getter.