fixed torch command not working properly