Fix error when initializing TSMessage subclasses