Code corrections for darkness overlay.