fix segfault if user only specifies 1 file
1 file changed