Fix small bug generating callback ids