Fix a bug in the update caching code.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>