fixed some occurances of $TEXT in template 'lepton' (will be removed later, anyway...) and lib_search