fixed task expiration stuff