fixing patterns file.