Added fix to character embedding extraction