Fix percentage bug