fix http callbacks crashes