Fix topic function signature

The topic function has an incorrect signature