bugfix, needs to be a cache variable.