Fixing bugs in WMM grid wrapper.