fix frame diff initialized for non cpp11