commands: Fix a bug in the amend interaction