Fixed brace levels being allowed to exceed 0 at the end of reading and causing a C error.