Fixed undefined variable 'path' in Reference