Fix a bug in deletion worker