correctly handle multiple instances of the same command on a slide