Fix error_buffer usage