Fix getCharacterType for children