Preventing crash when renedering Segment outside of context of Loop