[BUGFIX] Prevent OutOfBoundsException in filelist