Fixed bug in BinaryDescriptor.register().