Fix for files clearing in noFiles === 0 mode