[fix] match "(" and ")" count before sending command