Fix errors in request callbacks