fix bug for boolean type