Fixed undefined references