Fix buffer_complete.