fix bug in setBoolField