work around a problem leading to pitch black pixels near the horizon