fixed delete uploaded file issue