fix callback null bug