Fix production errors (eager load and deprecated error constant)