Fixing ranking not in mongoose