Correcting path of sparks