NightSpark script bugfix