Fix bug when enabling mobile themes.