wmadec: avoid infinit loop.