Fixed infinite recursion issue with applyDynamic