Fixed context issue

this is the inner class, use self to get access to getExpiresDate()