segment: Fix the failure paths