Fixed some ring bugs
Fixed some ring bugs