Fix ranged for example bug.