fix bug: new and old version protocol