Fixes bug in commands by referencing the collection rather than the item for the commands element