fix bugs

fix bugs for some of the syntax with "{" and "[".