fixed converter bug (pattern lengths)