fix case where table exists but model does not