Fixed a crash caused by bracket matching