fix a expiration bug