fix layout not found when switching theme