fix bug in exclusive mode and listen tool script