Undefined variable: lec