fixed bug: sequence input ports didn't work with multiple documents