Fixed bug in checking match cache expiring