translate: fixed ranges handling

Was possible to fail when removing some range from list