zero-division error when modulo operator has zero value as its right number