Prevent division by zero error