Prevent division by zero