fix bug in topic creation