Fixed minor bug in ScanRequest encoder.