fixed destroyed callback