Fix Theme distribution function