MADS: Fix calculating frame delays for animated objects