fix bug with saving fields on medical