fix Issue #156,  handle slices in returnerror