ensure segment is > 0