fixed incorrect dynamic instantiation of dhkeydatapair object