fix sagment failed error