Bug fixes to patient update.