fix for boolean type