Fix deprecated eager loading code.