fixed error with non visible tv variable -> now lp, kl, tv and hz are globally defined