fixed callback errors in example code