fixed some cache errors