Fix bug in rip_blocks. Was not gathering enough lines due to bad counting of braces.