fix bug for left right pair match of ( and [