Fix typos
Only get ring if needed

Get the ring only in the case that it is nedded.