fix bug in ring example

Link: https://github.com/GeneAssembly/biosal/issues/318
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>