Fixed chain break reallocation to be able to properly use optional outputs