Fix getChunk patch