fix NewVariable with 1-length array