Fixed division by zero in queue message