fixed a cache stalling bug