fix delegate 0 bug