fixed unreferenced variable in make_shell_context