Fix repository eager loading