Prevent a possible division by zero. Closes: #255.