fix mjf instantiation