Fixed missing cache when loader set before collector. (part of #9)