fix bug in getBoolField