fixed bug with boolean datatype conversion