fixed error on delete uploaded file