Fixing bad Entity Framework references