Can't use textContent to get the file name. Fix #277