handle BOOLEAN field correctly

fix #5