Fix bug triggered by copy1DRangeFrom on some devices.