Editor: fix cloneRange bug