prevent  creation of dynamicAnimator when it is not needed and may cause crash