Fixed infinite rendering loop caused by immediate animations