fix problems with titles using local var