Fixed files being cleared after reloading.