Fixed minor bug in sub patient