Fix a bug in ring-table