Fixed bug in patient delete function