Cache namespace fix and removed unresolved variable exception