serialized registry length fixes