fix broken cache bounds