Fixed dark toggle function.