Fixing bug in lightspeed sync script.