Fix logical bug (accidentally put expired() when it should be !expired()).