Fix validation bug on close patient