fix n_dims, n_dims_output on Homogeneous