handles NaN errors if on of the rings have less length than the phraseLength