fixed the problems in AIF and MIF.

Signed-off-by: waseem <waseem.n.abed@gmail.com>