fix bracket tokenization