fixed #3868. when singleton delted, it should dispatch callbacks.