register_callback returns nil, err