Fixed protocol_version bug