Fixed multiple execution of commands