fix the nested animate bug