[lms] Can't call method "val" on an undefined value....