Fixed a bug with IDeletableEntityRepository