InteractionEmailMoveToWorkbin chain of commands

I would like to know why the code:

commandManager.InsertCommandToChainOfCommandBefore(“InteractionEmailMoveToWorkbin”, “IsContactModified”,
new List()
{
new CommandActivator() { CommandType = typeof(MyCommand), Name = “MyCommand”}
});

executes well if the task in the .module-config is:

but fails if the task is:

In the last case it always inserts my custom command at the end of the command chain but not at the beginning as requested.
Workspace Desktop Edition v8.5.130.4