Fixed undefined variable or method