percentage bug fix