Fix problem where we could try seeking to files that don't exist