fixed bug three plus a bonus bug for editing patients updating.