Fixed the MMI bug reported by Peter Pazak
Fixed the MMI bug reported by Peter Pazak


Former-commit-id: 944abd6137372017168197d35e87ddc075ce126a [formerly 4635b298448fd1c8c34dc370993ebc518ce2f310]
Former-commit-id: 874a6f78e94bc3526762f32005ba9184d67084ee
gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine,gem/oq-engine