fixed unclosed rings