fix percentage bug