#### The People of the State of New York ex rel. Richard Mills, Appellant, v John Lempke, Superintendent, Five Points Correctional Facility, et al., Respondents.

[978 NYS2d 511]

Appeal from a judgment of the Supreme Court, Seneca County (Dennis F. Bender, A.J.), entered July 25, 2011 in a habeas corpus proceeding. The judgment denied and dismissed the petition.

It is hereby ordered that the judgment so appealed from is unanimously affirmed without costs.

Memorandum: On appeal from a judgment that denied and dismissed the habeas corpus petition, petitioner initially contends that Supreme Court erred in applying the doctrine of res judicata. Although it appears that the court intended to apply the doctrine of collateral estoppel, and the use of that doctrine would have been proper under these circumstances, we agree that the court erred in applying the doctrine of res judicata. “Under the doctrine of res judicata, a party may not litigate a claim where a judgment on the merits exists from a prior action [or proceeding] between the same parties involving the same subject matter” *(Matter of Hunter,*4 NY3d 260, 269 [2005]). Here, inasmuch as the parties opposing petitioner in the habeas corpus proceeding are not identical to those opposing him in the resentencing proceeding, the court erred in applying the doctrine of res judicata *(see Matter of Josato, Inc. v Wright,*288 AD2d 384, 385 [2001]; *Matter of State of New York v Town of Hardenburgh,*273 AD2d 769, 772 [2000]). We nevertheless conclude, however, that the court properly denied and dismissed the petition on the merits.

We reject petitioner’s contention that he is unlawfully detained based on the court’s failure to file an amended order of commitment after resentencing him on one of the charges of which he was convicted. “Irregularities or defects in an order of commitment would not entitle petitioner to immediate release where, as here, there is a valid judgment of conviction underly*1366ing the commitment” *(People ex rel. Burr v Clark,*278 AD2d 938, 938 [2000], *lv denied*96 NY2d 707 [2001]; *see People ex rel. Reed v Travis,*12 AD3d 1102, 1103 [2004], *lv denied*4 NY3d 704 [2005]). Petitioner’s contention that he is unlawfully detained because the court violated his right to due process in resentencing him is also unavailing. Even assuming, arguendo, that his right to due process was violated, we conclude that petitioner would only be entitled to a new sentencing proceeding, and thus habeas corpus relief does not lie *(see People ex rel. McGourty v Senkowski,*213 AD2d 954, 954 [1995], *lv denied*85 NY2d 812 [1995]). Petitioner’s further contention that Correction Law § 601-d and Penal Law § 70.85 are ex post facto laws is raised for the first time on appeal and thus is unpreserved for our review and, in any event, that contention is without merit *(see People v Pruitt,*74 AD3d 1366, 1367 [2010], *lv denied*15 NY3d 855 [2010]).

Petitioner’s remaining contentions may be raised on direct appeal or by a motion pursuant to CPL article 440, and thus habeas corpus relief is unavailable with respect to those contentions *(see People ex rel. Smith v Burge,*11 AD3d 907, 907-908 [2004], *lv denied*4 NY3d 701 [2004]; *People ex rel. Pitts v McCoy,*11 AD3d 985, 985 [2004], *lv denied*4 NY3d 705 [2005]). Present — Smith, J.R, Fahey, Lindley, Valentino and Whalen, JJ.