fixed public files bug