Fix adgenerator in adwork example.