fix light check