Fixed alg_dicc deletion bug