#591 Fixed a class delete_all