Fix invalid input on protocol