fixed Patient to tasks relationship