fix a bug which can't delete many records at one time