fix dispatcher bug