Fixed bug in addressing cache's internal buffer