fixed problem when editing videos