fixed anmi bug