bug fixes with csv uploading