fix one function progs buf