BugFix: when register parameter are used the mode must be the mode of the parameters!