fix process_boolean bug, fix custom_query bug