Fix bug of animator