fix division by zero error, percent is long