fixed bug where lightning would always flash on first update