fix theme parsing errors.