IRepository error solved