Fix theme switching on morning