Fixed manage patient error