Prevent division by zero.