Fixed a bug where the activity id was not being propagated back on creation.