fix syntax error and campaign expire logic