Fixed indentation error, where cached values would result in an AttributeError.