fix callback canceled bug