It's saving just not saving in type field properly