Fix crash on POST callbacks