Fix for night and hdr modes.