MADS: Fix a couple of out of bound access in ASound7 and ASound8