fix the percentage bug