Fixed buf in SLR parser