fixed bug where the type of a TagList stays null even if it contains tags