fixed setAnimated bug

fixed setAnimated bug