Fixed sparks error (hopefully!)