fix copy reference in non-ngrepeat element insertion