fixed some errors that produced incorrect cache misses