Fixes a bug when parsing concatenated text