fixing record save