CSV detection bug