Fix warnings in BlockEncodingManager