Bug fix to ios
Added filtration for mam