Detecting the first brace may cause a bug