Fixed undefined results error.