Fix a bug in single repository weighted for users without data