Fix restore for commands table.