Fix buffer lines error