Fixed sparks
Fixed bugs that were causing warnings