fixed a crash when fetching segment data