Fix wrong context on m2o editor

Fixes RM-2692