Fix video index-class handling when video switched by hand, fix #412