fixed bug with char instead varchar columns