fix delete and checking batch