Fix getbufvar