Avoid the divide-by-zero error