Check if there are command-chain clashes and fix them.