fix nil inferred counts on import