fix bug with eager loading.