Cache checking fix.