Fixed undefined warning