Fix crash when manipulating range in EOD