get_buf fixed