fix protocol compilation issue