Fixed a bug involving secret expiration dates