Fix check if fileinfo is valid