manual array to collection copy fix