fixed small bug in createTopic