Fixes polynomial file naming.