Fixed light stack race condition