fix order in transform_exprs_to_block