fix bug: 1. no current protocol; 2.input double not right