fixing mmf nil issue