fix spec generator