fix calculate percent

fix calculate percent