Fixed EF repository