fix boolean fields