fix debugger in patient