Fix warnings in remote_callbacks