Fix release logic