fix last value bug
auto detect seperator