Should have fixed the vstack error, by making the coefficients have the same length. This will fail for stars with less than 3rd degree fits