Note on gauge invariance and causal propagation