Fix a segfault caused by wrong index use
Fix pipeline execution to work with pv-4.2, tests need fixing