fixed isExpired()