Fix duplicate model resolution.