Fixed bug where undo not creating a redo

item in metabolites table.