Empty files bug fixed