fixes crash to respond with callback