Fix bug where no csv could be uploaded