highlights: fix nan issue with dead pixels.