fixing generic repository