Fix the current loop function, vector potential is differenced correctly