Fix the reference to a temporary array error.