fix $expiry declaration error (broken in 5.14)