copyOfRange issue