Prevent division by zero exception.