fix initialCommands scope