Fixed tick stage sequencing bug for lighting