fixed long filename bug