fixes n+1 queries on user type repo