Fix shell.run not working correctly