fix NaN bug with empty messages in 1-segments