Fix bug with eager_loads two objects from different classes, which inherited from one class.