Fix mc
Merge pull request #248 from pyhalov/perl_mediator_errors

Fix mc