fixed bug with saving in DB matches field