Patient Edit bug fix