Fixed assert in videoengine