fixed remote filename bug