fixed the bug that uses wrong column type.