Fix get file bug