Adapted to an occasional typo in the output