Fixed a bug that prevented proper upload/delete of files