Bugfix for -1 connection slicing

Fixes #351.