Fix expired challenges expiring the wrong way around

Fixes #35