fix the bug in removing uploaded data