Fixed incorrect memory mapping on initial buffer