Fixed shadow toggling bug