Fix maintenance of n_blocks in the RTS