Fix issue 328 using the new num_internal_keys format parameter.