fix cache expire bug