Fixed a bug where certain variables weren't being set on topic initialisation.