Fixed slice not terminating with a bad start

Added test to check for this