annotate: fixed a bug where a column type could be wrongly guessed