fix a bug concerning missing .cached_unit() method