fixed kernel wmd for updated wmd structure