fix get file undefined