support batch delete.
fix initialization.