Moved theme initialization to bottom as it caused problems with 24.4