Fix animate_detect