fill_buf fixed