Fixing edge case with balancing

- Can't close a bracket without it being open first