Fix error cause server crash