fix wrong if when loading new video sequence