Fix edit register in db with many values