Fixed cache reading bug previously introduced.