fix bug with public files