Fix regression in files loading