pagination fix for badges