Fixed a bug in the IsOutOfDate method.